package com.four.bmm.dao;

import com.four.bmm.entity.User;

/**
 * 普通用户
 * 数据访问接口
 * 对应UserMapper.xml
 */
public interface IUserDao {
   // User isExistsUser(String username);

    /**
     * 注册
     * @param user
     * @return
     */
    public boolean regist(User user);

    /**
     * 判断用户名是否存在
     * @param username
     * @return
     */
    public User checkUserByName(String username);

    /**
     * 登陆
     * @param user
     * @return
     */
    public User login(User user);

    /**
     * 上传头像
     * @param user
     * @return
     */
    public boolean uploadHeader(User user);
}
